package com.xmotor.test_scheduled;

import org.springframework.scheduling.annotation.Scheduled;

/**
 * @Description 测试spring定时任务
 * @Author Dang Xianyue
 * @Date 2020-08-07 17:05
 * @Version 1.0
 */
//@Component
public class TestScheduled {
    @Scheduled(cron = "0/5 * * * * ?")
    public void run(){
        System.out.println("测试cron表达式");
    }
}
